<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
	session_start();
 	if(empty($_GET["content"]))
 		$content = "logowanie";
 	else
		$content = $_GET["content"];
		
	if(!file_exists("contenty/".$content.".php"))
		$content = "aktualnosci";
		
	if (!$_SESSION["is_login"])
		$content = "logowanie";
		
	require("config/config.php");
?>

<title><?php echo "Ruś -".$content?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="background">
<div id="shadow">
<div id="page">
  <div id="header"></div>
   <div id="menu">
      <ul>
       <li><a href="/?content=aktualnosci">Aktualnosci</a></li>
       <li><a href="/?content=galeria">Galeria</a></li>
       <li><a href="/?content=komentarze">Komentarze</a><li>
       <li><a href="http://forum.rus.warmia.pl">Forum</a></li>
       <li><a href="/?content=kontakt">Kontakt</a></li>
       <li><?php if($_SESSION["is_login"] != 0) echo "<a href=\"/?content=wyloguj\">wyloguj</a>";?></li>
     </ul>
  </div>
  <div id="content">
  	<div id="long"></div>
  	<div id="mainContent"><?php require("contenty/".$content.".php"); ?></div>
  </div>
  <div id="foot">
  	<p>testowa stopka na stroni</p>
  </div>
</div>
</div>
</div>
</body>
</html>